import Vue from 'vue'

import store from './store'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

import App from './App.vue'
import bus from './bus'


let CodeMirror = require("codemirror/lib/codemirror");
import "codemirror/lib/codemirror.css";
import "codemirror/theme/mdn-like.css";
import "codemirror/addon/fold/foldgutter.css";

import "codemirror/mode/javascript/javascript.js";
import "codemirror/addon/fold/foldcode.js";
import "codemirror/addon/fold/foldgutter.js";
import "codemirror/addon/fold/brace-fold.js";
import "codemirror/addon/fold/comment-fold.js";
import "codemirror/addon/edit/matchbrackets";
import 'codemirror/addon/hint/javascript-hint'
import 'codemirror/addon/hint/show-hint'
import 'codemirror/keymap/sublime.js'
import 'codemirror/keymap/emacs.js'
import 'codemirror/keymap/vim.js'


import './assets/common.css'


Vue.config.productionTip = false
Vue.use(ElementUI);

Vue.prototype.$bus = bus;
Vue.prototype.$CodeMirror = CodeMirror;
new Vue({
    store,
    render: h => h(App)
}).$mount('#app')


window.$bus = bus;